Skip to content

feat: add markdown preview with toggle to view raw source#863

Open
Naresh-official wants to merge 5 commits intosourcebot-dev:mainfrom
Naresh-official:feature/markdown-preview-toggle
Open

feat: add markdown preview with toggle to view raw source#863
Naresh-official wants to merge 5 commits intosourcebot-dev:mainfrom
Naresh-official:feature/markdown-preview-toggle

Conversation

@Naresh-official
Copy link

@Naresh-official Naresh-official commented Feb 7, 2026

Fix: Add toggle for Markdown preview #794

Summary

This PR adds a toggle to control the visibility of the Markdown preview panel. The preview is now rendered conditionally based on user intent.

Details

  • Introduces a UI toggle to enable or disable the Markdown preview
  • Preview component is only mounted when enabled

Results

Screenshot from 2026-02-07 16-28-39 Screenshot from 2026-02-07 16-29-11

Summary by CodeRabbit

Release Notes

  • New Features
    • Added markdown file preview with syntax highlighting, video embedding, and theme-aware rendering.
    • Added Preview/Code view toggle for markdown files to seamlessly switch between rendered and source content.
    • Improved file type detection and language identification for enhanced browsing experience.

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants